<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GConverterInputstream</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="GIO 参考手册">
<link rel="up" href="streaming.html" title="Streaming I/O">
<link rel="prev" href="gio-GUnixOutputStream.html" title="GUnixOutputStream">
<link rel="next" href="gio-GConverterOutputstream.html" title="GConverterOutputstream">
<meta name="generator" content="GTK-Doc V1.17 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="gio-GUnixOutputStream.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="streaming.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GIO 参考手册</th>
<td><a accesskey="n" href="gio-GConverterOutputstream.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#gio-GConverterInputstream.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#gio-GConverterInputstream.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry">
<a name="gio-GConverterInputstream"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="gio-GConverterInputstream.top_of_page"></a>GConverterInputstream</span></h2>
<p>GConverterInputstream — Converter Input Stream</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="gio-GConverterInputstream.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
#include &lt;gio/gio.h&gt;

                    <a class="link" href="gio-GConverterInputstream.html#GConverterInputStream" title="GConverterInputStream">GConverterInputStream</a>;
<a class="link" href="gio-GInputStream.html#GInputStream" title="GInputStream"><span class="returnvalue">GInputStream</span></a> *      <a class="link" href="gio-GConverterInputstream.html#g-converter-input-stream-new" title="g_converter_input_stream_new ()">g_converter_input_stream_new</a>        (<em class="parameter"><code><a class="link" href="gio-GInputStream.html#GInputStream" title="GInputStream"><span class="type">GInputStream</span></a> *base_stream</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gio-GConverter.html#GConverter" title="GConverter"><span class="type">GConverter</span></a> *converter</code></em>);
<a class="link" href="gio-GConverter.html#GConverter" title="GConverter"><span class="returnvalue">GConverter</span></a> *        <a class="link" href="gio-GConverterInputstream.html#g-converter-input-stream-get-converter" title="g_converter_input_stream_get_converter ()">g_converter_input_stream_get_converter</a>
                                                        (<em class="parameter"><code><a class="link" href="gio-GConverterInputstream.html#GConverterInputStream" title="GConverterInputStream"><span class="type">GConverterInputStream</span></a> *converter_stream</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="gio-GConverterInputstream.description"></a><h2>Description</h2>
<p>
Converter input stream implements <a class="link" href="gio-GInputStream.html#GInputStream" title="GInputStream"><span class="type">GInputStream</span></a> and allows
conversion of data of various types during reading.
</p>
</div>
<div class="refsect1">
<a name="gio-GConverterInputstream.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="GConverterInputStream"></a><h3>GConverterInputStream</h3>
<pre class="programlisting">typedef struct {
  GFilterInputStream parent_instance;
} GConverterInputStream;
</pre>
<p>
An implementation of <a class="link" href="gio-GFilterInputStream.html#GFilterInputStream" title="GFilterInputStream"><span class="type">GFilterInputStream</span></a> that allows data
conversion.
</p>
</div>
<hr>
<div class="refsect2">
<a name="g-converter-input-stream-new"></a><h3>g_converter_input_stream_new ()</h3>
<pre class="programlisting"><a class="link" href="gio-GInputStream.html#GInputStream" title="GInputStream"><span class="returnvalue">GInputStream</span></a> *      g_converter_input_stream_new        (<em class="parameter"><code><a class="link" href="gio-GInputStream.html#GInputStream" title="GInputStream"><span class="type">GInputStream</span></a> *base_stream</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gio-GConverter.html#GConverter" title="GConverter"><span class="type">GConverter</span></a> *converter</code></em>);</pre>
<p>
Creates a new converter input stream for the <em class="parameter"><code>base_stream</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>base_stream</code></em> :</span></p></td>
<td>a <a class="link" href="gio-GInputStream.html#GInputStream" title="GInputStream"><span class="type">GInputStream</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>converter</code></em> :</span></p></td>
<td>a <a class="link" href="gio-GConverter.html#GConverter" title="GConverter"><span class="type">GConverter</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a new <a class="link" href="gio-GInputStream.html#GInputStream" title="GInputStream"><span class="type">GInputStream</span></a>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="g-converter-input-stream-get-converter"></a><h3>g_converter_input_stream_get_converter ()</h3>
<pre class="programlisting"><a class="link" href="gio-GConverter.html#GConverter" title="GConverter"><span class="returnvalue">GConverter</span></a> *        g_converter_input_stream_get_converter
                                                        (<em class="parameter"><code><a class="link" href="gio-GConverterInputstream.html#GConverterInputStream" title="GConverterInputStream"><span class="type">GConverterInputStream</span></a> *converter_stream</code></em>);</pre>
<p>
Gets the <a class="link" href="gio-GConverter.html#GConverter" title="GConverter"><span class="type">GConverter</span></a> that is used by <em class="parameter"><code>converter_stream</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>converter_stream</code></em> :</span></p></td>
<td>a <a class="link" href="gio-GConverterInputstream.html#GConverterInputStream" title="GConverterInputStream"><span class="type">GConverterInputStream</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the converter of the converter input stream. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.24</p>
</div>
</div>
<div class="refsect1">
<a name="gio-GConverterInputstream.see-also"></a><h2>See Also</h2>
<a class="link" href="gio-GInputStream.html#GInputStream" title="GInputStream"><span class="type">GInputStream</span></a>, <a class="link" href="gio-GConverter.html#GConverter" title="GConverter"><span class="type">GConverter</span></a>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.17</div>
</body>
</html>